package com.zja.www.entity;

/**
 * @author ja
 * @create 2025/3/22
 * @department 科室信息表
 */
public class Doctor{

    private int id;
    private String name;
    private String password;
    private String department;
    private String description;
    private String email;
    private double price;
    private String position;
    private int departmentId;

    //无参构造方法
    public Doctor() {
    }

    //带参构造方法
    public Doctor(String name, int id, String password, String department, String description, String email, double price, int departmentId, String position) {
        this.name = name;
        this.id = id;
        this.password = password;
        this.department = department;
        this.description = description;
        this.email = email;
        this.price = price;
        this.departmentId = departmentId;
        this.position = position;
    }

    //getter 和 setter 方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public int getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(int departmentId) {
        this.departmentId = departmentId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    //toString 方法
    @java.lang.Override
    public java.lang.String toString() {
        return "Doctor{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", department='" + department + '\'' +
                ", description='" + description + '\'' +
                ", email='" + email + '\'' +
                ", price=" + price +
                ", position='" + position + '\'' +
                ", departmentId=" + departmentId +
                '}';
    }
}
